//
//  DFProductsProductAtlasModel.m
//  DFront
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 xuzenghui. All rights reserved.
//

#import "DFProductsProductAtlasModel.h"

@implementation DFProductsProductAtlasModel

- (instancetype)init
{
    if (self = [super init]) {
        _arr = [NSMutableArray array];
    }
    return self;
}

-(void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"images"]) {
        for (NSDictionary *dic in value) {
            DFProductsProductAtlasDetailModel *model = [[DFProductsProductAtlasDetailModel alloc]init];
            [model setValuesForKeysWithDictionary:dic];
            [_arr addObject:model];
        }
    }
    else{
        [super setValue:value forKey:key];
    }
}


@end
